package com.example.jiangzhu.mvpdemo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jiang zhu on 2018/4/5.
 */

public class UserBean implements Parcelable{

    private String name, password;

    public UserBean(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public UserBean(Parcel parcel){
        name = parcel.readString();
        password = parcel.readString();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(password);
    }
}
